package co.fitstart.entity.courseware.exercise;

import com.demo2do.core.utils.Alias;

/**
 * 周计划-上课内容
 * @author haiyan_xiao
 *
 */
@Alias("BodyTag")
public enum ExerciseContent {
    ABDOMEN("abdomen", "腹"),
    
    BACK("back", "背"),
    
    CHEST("chest", "胸"),
    
    SHOULDER("shoulder", "肩"),
    
    HIP("hip", "臀"),
    
    ARM("arm", "手臂"),
    
    LEG("leg", "腿"),
    
    FITNESS("fitness", "体能"),
    
    OTHER("other", "其它");

    private String alias;
    
    private String description;
    
    private ExerciseContent(String alias, String description) {
        this.alias = alias;
        this.description = description;
    }
    
    /**
     * 
     * @param ordinal
     * @return
     */
    public static ExerciseContent ordinalOf(int ordinal) {
        for (ExerciseContent classContent : ExerciseContent.values()) {
            if (classContent.ordinal() == ordinal) {
                return classContent;
            }
        }
        
        return null;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param alias the alias to set
     */
    public void setAlias(String alias) {
        this.alias = alias;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
}
